package com.love.cloud.admin.service;

import com.love.cloud.admin.api.vo.AuthVo;

import javax.servlet.http.HttpServletRequest;

/**
 * @author hongdongqu
 */
public interface AuthService {
    /**
     * 获取到token
     * @param request
     * @return
     */
    Object getToken(HttpServletRequest request, AuthVo authVo);

    /**
     * 获取到token信息通过浙政钉id
     * @param request
     * @param authVo
     * @return
     */
    Object getTokenInfoByAccountId(HttpServletRequest request, AuthVo authVo);

    /**
     * 清除掉用户详情缓存,全部token信息
     */
    void clearAllUserTokenAndDetail();
}
